package main

import (
	"fmt"
	"time"
)

func dayOfTheWeek(day int,month int,year int) string {
	//time.Date返回一个时区为loc、当地时间为  :func Date(year int, month Month, day, hour, min, sec, nsec int, loc *Location) Time;
	//weekday()返回时间点t对应的那一周的周几;
	//String返回该日（周几）的英文名（"Sunday"、"Monday"，……）;func (d Weekday) String() string ;
	return time.Date(year,time.Month(month),day,0,0,0,0,time.Local).Weekday().String()

}

func main(){

	fmt.Println(dayOfTheWeek(31,8,2019))
}